package com.sjgtw.cloud.web.drainageRecord.domain;

import com.alibaba.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.sjgtw.cloud.common.core.web.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 排水清淤记录对象 t_eg_drainage_record
 * 
 * @author lvyoufang
 * @date 2024-03-14
 */
@ApiModel(value="排水清淤记录对象", description="t_eg_drainage_record")
public class DrainageRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 区段 */
    @ApiModelProperty(value = "区段")
    private Long section;

    /** 工区 */
    @ApiModelProperty(value = "工区")
    private Long workArea;

    /** 设备名称 */
    @ApiModelProperty(value = "设备名称")
    @ExcelProperty(value = "设备名称")
    private String equipmentName;

    /** 里程 */
    @ApiModelProperty(value = "里程")
    @ExcelProperty(value = "里程")
    private String mileage;

    /** 左右侧 */
    @ApiModelProperty(value = "左右侧")
    @ExcelProperty(value = "左右侧")
    private String leftRight;

    /** 存在问题 */
    @ApiModelProperty(value = "存在问题")
    @ExcelProperty(value = "存在问题")
    private String problem;

    /** 完成量 */
    @ApiModelProperty(value = "完成量")
    @ExcelProperty(value = "完成量")
    private String finishedNum;

    /** 完成时间 */
    @ApiModelProperty(value = "完成时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @ExcelProperty(value = "完成时间")
    private Date finishedTime;

    /** 创建人id */
    @ApiModelProperty(value = "创建人id")
    private Long createUserId;

    /** 区段名称 */
    @ApiModelProperty(value = "区段名称")
    @ExcelProperty(value = "区段")
    private String sectionName;

    /** 工区名称 */
    @ApiModelProperty(value = "工区名称")
    @ExcelProperty(value = "工区")
    private String workAreaName;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setSection(Long section) 
    {
        this.section = section;
    }

    public Long getSection() 
    {
        return section;
    }
    public void setWorkArea(Long workArea) 
    {
        this.workArea = workArea;
    }

    public Long getWorkArea() 
    {
        return workArea;
    }
    public void setEquipmentName(String equipmentName) 
    {
        this.equipmentName = equipmentName;
    }

    public String getEquipmentName() 
    {
        return equipmentName;
    }
    public void setMileage(String mileage) 
    {
        this.mileage = mileage;
    }

    public String getMileage() 
    {
        return mileage;
    }
    public void setLeftRight(String leftRight) 
    {
        this.leftRight = leftRight;
    }

    public String getLeftRight() 
    {
        return leftRight;
    }
    public void setProblem(String problem) 
    {
        this.problem = problem;
    }

    public String getProblem() 
    {
        return problem;
    }
    public void setFinishedNum(String finishedNum) 
    {
        this.finishedNum = finishedNum;
    }

    public String getFinishedNum() 
    {
        return finishedNum;
    }
    public void setFinishedTime(Date finishedTime) 
    {
        this.finishedTime = finishedTime;
    }

    public Date getFinishedTime() 
    {
        return finishedTime;
    }
    public void setCreateUserId(Long createUserId) 
    {
        this.createUserId = createUserId;
    }

    public Long getCreateUserId() 
    {
        return createUserId;
    }
    public void setSectionName(String sectionName) 
    {
        this.sectionName = sectionName;
    }

    public String getSectionName() 
    {
        return sectionName;
    }
    public void setWorkAreaName(String workAreaName) 
    {
        this.workAreaName = workAreaName;
    }

    public String getWorkAreaName() 
    {
        return workAreaName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("section", getSection())
            .append("workArea", getWorkArea())
            .append("equipmentName", getEquipmentName())
            .append("mileage", getMileage())
            .append("leftRight", getLeftRight())
            .append("problem", getProblem())
            .append("finishedNum", getFinishedNum())
            .append("finishedTime", getFinishedTime())
            .append("createUserId", getCreateUserId())
            .append("remark", getRemark())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("sectionName", getSectionName())
            .append("workAreaName", getWorkAreaName())
            .toString();
    }
}
